<div class="page-5 commonPage hsth">
	<div class="bg-3"></div>
	<?php echo $this->element('sidebar'); ?>
	<div class="box-right zhigh">
        <?php echo $this->element('banner'); ?>
			<div class="title">
                <ul class="breadcrumbs">
                    <li><a href="<?php echo $this->General->base_url() ?>"><img style="position: relative; top: 2px;" src="<?php echo $this->webroot ?>images/home-yl-2.png" /></a></li>
                    <?php
                        foreach($breadcrumbs as $breadcrumb)
                        {
                            echo '<li><a href="'.$this->General->base_url().$breadcrumb['link'].'">'.$breadcrumb['title'].'</a></li>';
                        }
                    ?>
                </ul>
			</div>
		<?php echo $this->element('header'); ?>
		<div class="box-content">
                <div class="intro-hsth">
                    <div class="ct-intro-hsth">
                        <div style="padding: 10px 10px 30px;">
                        <?php echo $info_category_hsth['category_desc']['description'] ?>
                        <!--
                        <h3><?php echo strip_tags($info_category_hsth['category_desc']['description']) ?></h3>
                        <h4><?php echo strip_tags($info_category_hsth['category_desc']['long_description']) ?></h4>
                        -->
                        </div>
                    </div>
                    <div class="logo-intro-hsth">
                        <img src="<?php echo $this->webroot . @$settings['logo_hsth'] ?>" />
                    </div>
                </div>
               <?php
                    if(count($products > 0))
                    {
               ?> 
				<ul class="li-page5 list-product">
                    <?php
                        foreach($products as $product)
                        {
                            $link = $this->General->base_url() . $parent_code .'/'. $product['product']['product_id'] .'-'. $product['link']['link'] .'.html';
                    ?>
					<li bg="009190">
						
						<a href="<?php echo $link ?>">
							<div class="br"></div>
							<img src="<?php echo $this->webroot . $product['image']['name'] ?>"/>
						</a>
                        <div class="box-price">
							<a href="<?php echo $link ?>"><?php $this->General->translate('view_detail') ?></a>
						</div>
					</li>
                    <?php
                        }
                    ?>
				</ul>
                
                <?php
                    }
                    else
                    {
                        echo '<div class="msg2">'.$this->General->get_translate('product_not_found').'</div>';
                    }
                ?>
                
                <?php 
                $link_cate = '';
                if(isset($category_info))
                {
                    $link_cate = $category_info['link']['link'];
                }
                    $link = $link = $this->General->base_url() . $parent_code .'/'. $link_cate . '?page=np';
                    echo $this->General->pagination(5, $number_page, $link, $page_current); 
                ?>
			<div class="clear"></div>
            <div class="product-favorites hsth-favorite">
                <div class="head-p-favorites">
                    <?php $this->General->translate('product_favorite') ?>
                </div>
                <div class="content-p-favorites">
                    <div class="content-slider-bottom" id="uneven_slider">
                        <div class="content-slider-bottom">
                            <div class="uneven">
    	                        <?php
                                    foreach($products_favorite as $product)
                                    {
                                        $link = $this->General->base_url() . $parent_code .'/'. $product['product']['product_id'] .'-'. $product['link']['link'] .'.html';
                                ?>
                                <div class="slick-slide f_hsth">
        	                            <a class="actn" href="<?php echo $link ?>">
        	    							<img src="<?php echo $this->webroot . $product['image']['name'] ?>"/>
        	    						</a>
        								<div class="box-price">
    									    <a href="<?php echo $link ?>"><?php $this->General->translate('view_detail') ?></a>
								        </div>
    	                        </div>
                                <div class="slick-slide f_hsth">
        	                            <a class="actn" href="<?php echo $link ?>">
        	    							<img src="<?php echo $this->webroot . $product['image']['name'] ?>"/>
        	    						</a>
        								<div class="box-price">
    									    <a href="<?php echo $link ?>"><?php $this->General->translate('view_detail') ?></a>
								        </div>
    	                        </div>
                                
                                
    	                        <?php
                                    }
                                 ?>
    	                    </div>
                        </div>
                    </div>
                </div>
            </div>
		</div>
	</div>
	<?php echo $this->element('footer'); ?>
</div>